package com.dragons.spring5.collectiontype;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Stu1 {
    private String[] course; //数组类型
    private List<String> list; //list集合类型属性
    private Map<String,String> maps; //map集合类型属性
    private Set<String> sets; //set集合类型属性
    //学生所学的多门课程
    private List<Course> courseList;//提供set方法
    public void setCourseList(List<Course> courseList) { this.courseList = courseList; }
    public void setCourse(String[] course) { this.course = course; }
    public void setList(List<String> list) { this.list = list; }
    public void setMaps(Map<String, String> maps) { this.maps = maps; }
    public void setSets(Set<String> sets) { this.sets = sets; }

    @Override
    public String toString() {
        return "Stu1{" +
                "course=" + Arrays.toString(course) +
                ", list=" + list +
                ", maps=" + maps +
                ", sets=" + sets +
                ", courseList=" + courseList +
                '}';
    }
}

